package com.uchiyou.walletwrapper.controller;

import com.uchiyou.walletwrapper.util.AddressUtil;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping(path = "/wallet")
public class WalletController {

    @GetMapping("/balance")
    public String getWalletBalance(){
        return AddressUtil.getbalance();
    }

    @GetMapping("/labels")
    public String getLabels(){
        String result =AddressUtil.listlabels();

        return result;
    }
}
